package com.irving;


public class SynchronizedLazySingleton {
    private static SynchronizedLazySingleton instance;

    private SynchronizedLazySingleton(){};

    public synchronized static SynchronizedLazySingleton getInstance(){
        if (null == instance){
            instance = new SynchronizedLazySingleton();
        }
        return instance;
    }
}
